package io.renren.modules.notice.service.impl;

import io.renren.modules.notice.dao.PsNoticeDao;
import io.renren.modules.notice.entity.PsNoticeEntity;
import io.renren.modules.notice.service.PsNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;





@Service("psNoticeService")
public class PsNoticeServiceImpl implements PsNoticeService {
	@Autowired
	private PsNoticeDao psNoticeDao;
	
	@Override
	public PsNoticeEntity queryObject(String id){
		return psNoticeDao.queryObject(id);
	}
	
	@Override
	public List<PsNoticeEntity> queryList(Map<String, Object> map){
		return psNoticeDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return psNoticeDao.queryTotal(map);
	}
	
	@Override
	public void save(PsNoticeEntity psNotice){
		psNoticeDao.save(psNotice);
	}
	
	@Override
	public void update(PsNoticeEntity psNotice){
		psNoticeDao.update(psNotice);
	}
	
	@Override
	public void delete(String id){
		psNoticeDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		psNoticeDao.deleteBatch(ids);
	}

	@Override
	public int selectTotal(String type){
		return psNoticeDao.selectTotal(type);
	}

    @Override
	public List<PsNoticeEntity> queryAll(){
		return psNoticeDao.queryAll();
	}
}
